package com.schillerchina.baselibrary.constans;


import com.schillerchina.baselibrary.utils.DeviceUtils;

/**
 * @author zhangzhiguo
 * @date 2019-07-30 13:02
 * @Description: 常量类
 */

public class AppConstants {
    /**
     * 下拉刷新列表的各个状态
     */
    public static final int LIST = 0;
    public static final int EMPTY = 1;
    public static final int ERROR = 2;
    public static final int LOADING = 3;
    public static final String STATIONID = "stationid";
    public static final String ACTIVATION_CODE = "activation_code";
    public static final String IS_STATION_TYPE = "is_station_type";
    public static final String IS_STATION_TYPE_SET = "is_station_type_set";
    public static final String IS_OFFLINE = "is_offline";

//    选择软件类型
    public static final String IS_SELECT_TYPES = "is_select_types";

    //    踏车type
    public static final String TREADMILLTYPE = "0";
    //    平板type
    public static final String TABLETYPE = "1";
    //    6分钟自由运动
    public static final String FREEWALKERTYPE = "2";


    //    模式 mode 0、无  1、恒定 2、脉冲 3、递增
    //    无
    //    自由运动Model
    public static final int FREEWALKERMODE = 0;
    //    恒定Model
    public static final int CONSTANTMODE = 1;
    //    脉冲Model
    public static final int PULSEMODE = 2;
    //    递增Model
    public static final int INCREASEMODE = 3;

    //    目标target 0、自由式 1、功率 2、心率 3、速度
    //    自由运动Target
    public static final int FREEWALKERTARGET = 0;
    //    功率Target
    public static final int POWERTARGET = 1;
    //    心率Target
    public static final int HEARTRATETARGET = 2;
    //    速度Target
    public static final int SPEEDTARGET = 3;
    //    设备 device 1、无设备 1、踏车 2、平板 3、六分钟
    //    无设备
    public static final int NODEVICE = 0;
    //    B200踏车
    public static final int TREADMILLDEVICE = 1;
    //    B400
    public static final int TREADMILLDEVICEB400 = 4;
    //    B500
    public static final int TREADMILLDEVICEB500 = 5;
    //    B600上肢
    public static final int TREADMILLDEVICEB600A = 6;
    //    B610床上
    public static final int TREADMILLDEVICEB600B = 7;
    //    B61床上
    public static final int TREADMILLDEVICEB61 = 8;
    //    B630床上
    public static final int TREADMILLDEVICEB630 = 9;
    //    平板
    public static final int SLABDEVICE = 2;
    //    六分钟
    public static final int FREEWALKERDEVICE = 3;
    //    当前设备
    public static int CURRENTDEVICE = 1;

    //    波形幅值 开启 3.7  不开启 2.5
    public static double CHECKLEAD = 2.5;


    //重新测量血压WebSocket推送ID
    public static final int BP_NOTICE = 2625;
    //    切换阶段
    public static final int SWITCHING_PHASE = 10;
    public static boolean IS_START_BP = false;
    //    停止运动测试ID
    public static final int STOP_NOTICE = 2626;
    //    是否点击开始
    public static boolean ISSTART = false;

    //    是否是离线版
    public static boolean ISOFFLINE = false;
    //    心电设备是否连接
    public static boolean HRISCONNECT = false;
    //    踏车设备是否连接
    public static boolean BPISCONNECT = true;
    //    数据来源是蓝牙或者USB
    public static boolean ISFROMUSB = false;
    //    是否多导心电任务
    public static boolean ISMULECG = false;


    public static final int SPO_PRACTICE_ID = 1247;
    public static final int SSY_PRACTICE_ID = 912;
    public static final int SZY_PRACTICE_ID = 918;
    public static final int HR_PRACTICE_ID = 962;

    public static boolean ISV1LEADFOFF = false;
    public static boolean ISV2LEADFOFF = false;
    public static boolean ISV3LEADFOFF = false;
    public static boolean ISV4LEADFOFF = false;
    public static boolean ISV5LEADFOFF = false;
    public static boolean ISV6LEADFOFF = false;
    public static boolean ISLALEADFOFF = false;
    public static boolean ISRALEADFOFF = false;
    public static boolean ISALLLEADFOFF = false;
    //    public static boolean ISV5LEADFALLOFF = false;
    public static boolean ISNOTICELEAD = false;

    public static boolean ISCHANGESLEEP = false;


    // LP滤波
    public static String LPFILTER = "关闭";
    // HP滤波
    public static String HPFILTER = "关闭";
    // AC滤波
    public static String ACFILTER = "关闭";

    public static String USERNAME = "";

    // 当前运动Activities ID
    public static int ACTIVITIESID = 0;
    // 计划 phase_id=0
    public static final String PLAN = "0";
    // 启动 phase_id=1
    public static final String START = "1";
    // 热身阶段1 phase_id=2
    public static final String WARM_UP_ONE = "2";
    // 热身阶段2 phase_id=3
    public static final String WARM_UP_TWO = "3";
    // 训练阶段 phase_id=4
    public static final String TRAIN = "4";
    // 恢复阶段1 phase_id=6
    public static final String RECOVER_ONE = "6";
    // 恢复阶段2 phase_id=7
    public static final String RECOVER_TWO = "7";
    // 暂停 phase_id=8
    public static final String PAUSE = "8";
    // 结束阶段 phase_id=9
    public static final String FINISH = "9";
    // 结束阶段 phase_id=11
    public static final String CLOSE = "11";

    // 废弃 phase_id=12
    public static final String ABANDONED = "12";
    // 报警状态
    public static Boolean ALERT = false;
    // 当前运动状态
    public static String CURRENTSTATE = START;

    public static String ALERT_CURRENTSTATE = START;

    // 没有内容，但是允许下拉刷新
    public static final int ALLOW_PULL_IN_EMPTY_PAGE = 4;
    //    IP地址
    public static final String IP_ADDRESS = "ip_address";
    //    WebSocket地址
    public static final String WS_ADDRESS = "ws_address";
    public  static  final  String hashCode="";
    public static final String USER_NAME = "user_name";
    public static final String STUDENT_LANGUAGES = "student_languages";
    public static final String SELECT_LANGUAGES = "select_languages";
    public static final String TEACHER_CURRICULUM = "teacher_curriculum";
    public static final String All_LANGUAGES = "allallLaguage";

    private static String speechSubscriptionKeys = "1aae1a3c2fa3435eab6a21ee3ced9e78";

    private static String serviceRegions = "southeastasia";
    public static final String languageCodess = "pre_key";
    public static final String allLaguage = "allLaguage";
    public static final String name = "name";
    public static  void  setKey(String speechSubscriptionKey,String serviceRegion){
         serviceRegions=serviceRegion;
         speechSubscriptionKeys=speechSubscriptionKey;
    }

    public static  String getSpeechSubscriptionKey(){
        return  speechSubscriptionKeys;
    }
    public static  String getServiceRegions(){
        return  serviceRegions;
    }
//    public static  String addresss = "ws://192.168.200.84:9102";
      public static  String addresss ="ws://gezi.uat.htksc.com/";
//    public static  String addresss ="ws://gezi.uat.htksc.com/";

//    public static  String addresss ="ws://192.168.6.171:9102";

    //websocket测试地址
    //public static String ws = "ws://rehab.schillerchina.com:9502?mac=" + DeviceUtils.getAndroidID() + "&client=seat";
//    public static final String ws= "ws://rehab.schillerchina.com:9502?mac="+ "00:80:25:4B:DC:41"+"&client=seat";
//    public static String ws ="ws://10.22.5.17:2024";
//    public static String ws ="ws://"+addresss;
//    public static String ws ="ws://47.93.52.135:9102";

    public static   void setAddress(String address){
         addresss=address;
    }


    public  static String  getAddress(){
        return  addresss;
    }


    public static final String ORDER = "order";
    public static final String TRAININGLIST = "traininglist";
    public static final String ACCESS_TOKEN = "access_token";
    public static final String TOKEN_TYPE = "token_type";
    public static final String PHONE = "PHONE";
    public static final String PASSWORD = "password";
    public static final String DIALOG_TYPE = "dialog_type";
    public static final String DIALOG_TITLE = "dialog_title";
    public static final String PRE_KEY = "pre_key";
    public static final String PRE_NAME = "pre_name";
    public static final String BP_HISTORY = "bp_history";
    public static final String ALARM = "alarm";
    public static final String XUEYA = "xueya";
    public static final String XUEYA_NMAE = "xueya_name";
    public static final String XUEYANG = "xueyang";
    public static final String XUEYANG_NAME = "xueyang_name";
    public static final String GONGLV = "gonglv";
    public static final String GONGLV_NAME = "gonglv_name";
    public static final String XINLV = "xinlv";
    public static final String XINLV_NAME = "xinlv_name";
    public static final String ECG = "ecg_mul";
    public static final String ECG_NAME = "xinlv_name";
    public static final String SINGLE_ECG = "single_ecg_mul";
    public static final String SINGLE_ECG_NAME = "single_ecg_name";
    public static final String TEMPLATEID = "templateid";
    public static final String SELECT_ACTIVITY_ID = "select_activity_id";
    public static final String ACTIVITY_ID = "activity_id";
    public static final String STATUS = "status";
    public static final String SERVICE_UUID = "0000ffe0-0000-1000-8000-00805f9b34fb";

    public static final String CHARACTER_UUID = "0000ffe1-0000-1000-8000-00805f9b34fb";

    //    BR-102血压测试
    public static final String BRSERVICE_UUID = "0000ffe0-0000-1000-8000-00805f9b34fb";
    public static final String BRCHARACTER_UUID = "0000ffe1-0000-1000-8000-00805f9b34fb";

    // 乐心
    public static final String LX_BRSERVICE_UUID = "0000a610-0000-1000-8000-00805f9b34fb";
    public static final String LX0_BRCHARACTER_UUID = "0000a620-0000-1000-8000-00805f9b34fb";
    public static final String LX1_BRCHARACTER_UUID = "0000a621-0000-1000-8000-00805f9b34fb";
    public static final String LX2_BRCHARACTER_UUID = "0000a622-0000-1000-8000-00805f9b34fb";
    public static final String LX4_BRCHARACTER_UUID = "0000a624-0000-1000-8000-00805f9b34fb";
    public static final String LX5_BRCHARACTER_UUID = "0000a625-0000-1000-8000-00805f9b34fb";

    //    美的连血氧测试仪
    public static final String MDLSERVICE_UUID = "0000ffb0-0000-1000-8000-00805f9b34fb";
    public static final String MDLCHARACTER_UUID = "0000ffb2-0000-1000-8000-00805f9b34fb";

    //    华思血氧测试仪
    public static final String HSSERVICE_UUIDS = "0000ff12-0000-1000-8000-00805f9b34fb";
    public static final String HSCHARACTER_UUID = "0000ff02-0000-1000-8000-00805f9b34fb";
//    public static final String HSCHARACTER_UUID= "0000ff03-0000-1000-8000-00805f9b34fb";

    //    超思血氧测试仪
    public static final String XYSERVICE_UUID = "00001822-0000-1000-8000-00805f9b34fb";
    public static final String XYCHARACTER_UUID = "00002a5f-0000-1000-8000-00805f9b34fb";
    //    实时功率
    public static final String SSGL = "ssgl";
    //    6分钟运动倒计时
    public static final String FREEWALKERDOWNTIME = "freewalkerdowntime";
    //    倒计时
    public static final String SDGL = "sdgl";
    public static final String PAD = "pad";
    public static final String EXIT = "exit";
    public static final String SIXSPORTS = "sixsports";
    public static final String ZS = "zs";
    public static final String XL = "xl";
    public static final String XY = "xy";
    public static final int GL_RESULT = 1001;
    public static final int XUEYA_RESULT = 1004;
    public static final int XUEYANG_RESULT = 1005;
    public static final int ECG_RESULT = 1007;
    public static final int SINGLE_RESULT = 1002;
    public static final int NEWPLAN_RESULT = 1006;
    public static final int TRAIN_RESULT = 1003;


    //    热身功率ORDER
    public static final int RSGL_ORDER = 101;

    //    增加功率ORDER
    public static final int ZJGL_ORDER = 102;
    //    热身阶段1 时间
    public static final int WARMUPONE_TIME_ORDER = 103;

    //    训练时间ORDER
    public static final int XLSJ_ORDER = 1001;

    //    目标功率ORDER
    public static final int MBGL_ORDER = 1002;

    //    下降功率ORDER
    public static final int XJGL_ORDER = 1003;

    //    高强度时长、下降时间ORDER
    public static final int GQDSC_ORDER = 1004;

    //    低强度时长、功率递增速度ORDER
    public static final int DQDSC_ORDER = 1005;

    //    血压间隔测量
    public static final int XYJG_ORDER = 4001;
    //    目标心率
    public static final int MBXL_ORDER = 1002;
    //    功率限值
    public static final int GLXZ_ORDER = 1010;
    //    恢复阶段二时间
    public static final int RECOVERTWO_TIME_ORDER = 2006;
    //    恢复阶段二功率
    public static final int RECOVERTWO_TIME_POWER = 2004;
    //    场地长度
    public static final int CDCD_ORDER = 4002;


    //    平板 阶段一 速度
    public static final int PAD_WARMUPONE_SPEED_ORDER = 101;
    //     平板 阶段一 坡度
    public static final int PAD_WARMUPONE_SLOPE_ORDER = 102;
    //     平板 阶段一 持续时间
    public static final int PAD_WARMUPONE_TIME_ORDER = 103;
    //    平板 阶段二速度增加
    public static final int PAD_WARMUPTWO_ADDSPEED_ORDER = 104;
    //     平板 阶段 二 持续时间
    public static final int PAD_WARMUTWO_TIME_ORDER = 105;
    //    平板安全速度
    public static final int PAD_SECURITY_SPEED_ORDER = 4002;
    //    平板安全坡度
    public static final int PAD_SECURITY_SLOPE_ORDER = 4003;
    //    平板运动速度
    public static final int PAD_TRAIN_SPEED_ORDER = 1001;
    //    平板高强度速度
    public static final int PAD_TRAIN_GQDSC_SPEED_ORDER = 4005;
    //    平板低强度速度
    public static final int PAD_TRAIN_DQDSC_SPEED_ORDER = 4008;
    //    平板高强度时长
    public static final int PAD_TRAIN_GQDSC_TIME_ORDER = 4006;
    //    平板低强度时长
    public static final int PAD_TRAIN_DQDSC_TIME_ORDER = 4007;
    //    平板运动坡度
    public static final int PAD_TRAIN_SLOPE_ORDER = 1002;
    //    平板运动时间秒
    public static final int PAD_TRAIN_TIME_ORDER = 1003;
    //    平板运动距离
    public static final int PAD_TRAIN_DISTANCE_ORDER = 1004;
    //    平板心率上限 trainHrUpper
    public static final int PAD_TRAIN_HR_UPPER = 1006;

    //    恢复阶段1平板运动速度
    public static final int PAD_RECOVERONE_SPEED_ORDER = 2001;
    //    恢复阶段1平板运动坡度
    public static final int PAD_RECOVERONE_SLOPE_ORDER = 2002;
    //    恢复阶段1平板运动时间秒
    public static final int PAD_RECOVERONE_TIME_ORDER = 2003;

    //    恢复阶段2平板运动速度
    public static final int PAD_RECOVERTWO_SPEED_ORDER = 2004;
    //    恢复阶段2平板运动坡度
    public static final int PAD_RECOVERTWO_SLOPE_ORDER = 2005;
    //    恢复阶段2平板运动时间秒
    public static final int PAD_RECOVERTWO_TIME_ORDER = 2006;

    //    轮训时间秒
    public static final int TRAIN_TIME = 1;
    //    热身阶段1持续时间秒 1分钟=60秒
    public static final int WARMUP_ONE_TIME = 60;
    //    热身阶段2持续时间秒
    public static final int WARMUP_TWO_TIME = 60;
    //    恢复阶段1持续时间秒  1分钟
    public static final int RECOVER_ONE_TIME = 60;
    //    恢复阶段2持续时间秒  2分钟
    public static final int RECOVER_TWO_TIME = 120;
    //    心率运动训练上下浮动5
    public static final double SPORT_FLOAT_TIME = 0.05;
    public static final double SPORT_FLOAT_HR = 0.05;

    //    心率报警ORDER
    public static final int ECG_ORDER = 5001;
    //    血氧报警ORFER
    public static final int SPO_ORDER = 5002;
    //    收缩压报警ORFER
    public static final int SSBP_ORDER = 5003;
    //    舒张压报警ORFER
    public static final int SZBP_ORDER = 5004;


    /**
     * Action：心率数据
     */
    public static final String ACTION_DATA_TO_HEARTRATE = "ACTION_DATA_TO_HEARTRATE";

    public static final String ACTION_DATA_TO_MUL_ECG = "ACTION_DATA_TO_MUL_ECG";

    public static final String ACTION_DATA_TO_GL = "ACTION_DATA_TO_GL";
    // WebSocket推送Action
    public static final String WEBSOCKET_SNED_MESSAGE_ACTION = "com.schillerchina.servicecallback.content";
    //PC主动推送开始授课信号: PC(教师端) → Android(学生端)
    public static final String WEBSOCKET_TEACHING_ACTION = "teaching";
    //PC主动推送暂停授课信号
    public static final String WEBSOCKET_STOP_TEACHING_ACTION = "stop_teaching";
    //PC主动推送结束授课信号
    public static final String WEBSOCKET_COLSE_TEACHING_ACTION = "colse_teaching";
    //PC端主动推送教师发言内容: PC(教师端) → Android(学生端)
    public static final String WEBSOCKET_LIVESPEECH_TEACHING_ACTION = "LiveSpeech";
    //PC端主动推送教师课件页码: PC(教师端) → Android(学生端)
    public static final String WEBSOCKET_SY_TEACHING_ACTION = "PageInfo";
    //PC端主动推送语中: PC(教师端) → Android(学生端)
    public static final String WEBSOCKET_SY_LANGUAGE_ACTION = "Language";
    //PC↔安卓讲话中实时翻译推送
    public static final String WEBSOCKET_SY_LANGUAGE_SPEEHING = "Speeching";
    //PC->安卓 回复
    public static final String WEBSOCKET_SY_LANGUAGE_ResponseSpeech = "ResponseSpeech";



    public static final String WEBSOCKET_SY_LANGUAGE_StudentSpeeching = "StudentSpeeching";
    //连接断开
    public static final String colse = "colse";
    public static final String onOpen = "onOpen";

    //轮训时间秒
    public static final int POWER_PARAMETER = 1;
}
